#ifndef SERVER_TEST_H_
#define SERVER_TEST_H_

#include "../game/game.hpp"
#include <SFML/Graphics.hpp>

#include "../lan/server.hpp"
#include "../lan/connection.hpp"

namespace lge2d {

class ServerTest: public IGame
{
	sf::RenderWindow * m_window;
	sf::Font m_font;
	sf::String m_serverStatus;

	lge2d::lan::server::Server m_server;
	lge2d::lan::server::Server::ServerState m_prevServerState;

	lge2d::lan::Connection m_clientConnection;

public:
	ServerTest(sf::RenderWindow * window);

	virtual void Initialize();
	virtual void Update(float deltaTime);
	virtual void OnEvent(const sf::Event * event);
	virtual void Render() const;
	virtual ~ServerTest();
};

}  // namespace lge2d

#endif /* SERVER_TEST_H_ */
